Skip to content

Validate OpenAPI schema references #2459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

martincostello
Copy link
Contributor

@martincostello martincostello commented Aug 8, 2025

Add validation rule for OpenAPI document schema references.

Resolves #2453.


Initial draft for now based on testing this approach with dotnet/aspnetcore#63095. Needs tests, plus rebasing after #2460 is merged.

Add validation rule for OpenAPI document schema references.

Resolves microsoft#2453.
@martincostello martincostello mentioned this pull request Aug 8, 2025
Add two basic unit tests and a fast path for when the components are registered.
- Improve handling of circular references.
- Improve the path.
Add a test for circular schema references.
Copy-pasted into the wrong place during a refactor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default Validation Rule(s) for schema reference validity
1 participant